package com.yunxi.util;

import java.math.BigDecimal;

/**
 * Created by zhangk on 15/7/3.
 */
public class ConstantActiviti {

    // 密码MD5加密盐
    public static final String MD5_KEY = "ian.ian-soft.com";

    // 默认分页大小
    public static final int PAGE_SIZE = 15;

    // token验证成功后放入request中user的name值
    public static final String TOKEN_REQUEST_USER_NAME = "user";
    // socket验证成功后放入session中user的name值
    public static final String SOCKET_SESSION_USER_NAME = "user";


    // 后台session中管理员key
    public static final String SESSION_ADMINUSER = "adminUser";

    //公司key
    public static final String SESSION_COMPANY = "company";

    //后台 企业员工管理 控制车主提现数据
    public static final String SESSION_USERMANAGER_EDIT_DEPOSIT = "editDeposit";

    /**
     * 系统初始化默认角色 不可修改或删除
     */
    public static final String ROLE_ADMIN = "admin";//后台超级管理 角色
    public static final String ROLE_STATION = "station";//企业站点 角色
    public static final String ROLE_COMPANY = "company";//企业物流 角色

    public static final String ROLE_GLY="GLY";

    //推送长连接心跳包
    public static final String HEARTBEATREQUEST = "0x11";
    public static final String HEARTBEATRESPONSE= "0x12";

    //登录shiro用户标识
    public static final String SHIRO_CURRENT_USER = "user";
    public static final String SHIRO_CURRENT_ENTERPRISE = "enterprise";
    public static final String SHIRO_CURRENT_APP_USER = "appUser";

    //app端数据状态 继承自1期代码
    public final static int FAIL = 0;// 失败
    public final static int SUCCESS = 1;// 成功

    //是否有效
    public final static String EFF_TYPE="1000";

    //资源类型
    public final static String RESOURCE_TYPE="1002";

    //资源类型-模块
    public final static String RESOUTCE_MODEL="10020001";

    //资源类型-菜单
    public final static String RESOUTCE_MENU="10020002";
    //有效
    public final static String EFFECTIVE ="10000001";
    //无效
    public final static String  INVALD="10000002";


    //工位类型
    public final static String STATION_TYPE="1003";

    //评价级别
    public final static String EVALUATE_TYPE="1005";

    //工单状态
    public final static String WORK_ORDER="1008";

    //开立工单
    public final static String WORK_ORDER_START="10080001";

    //已派工
    public final static String WORK_ORDER_DISPATCHING="10080003";

    //性别
    public final static String SEX="1001";

    //微信预约
    public final static String WECHAT_APPOINTMENT="10070002";

    //电话预约
    public final static String PHONE_APPOINTMENT="10070001";

    //预约到店
    public final static String TO_STORE_TYPE_APPOINTMENT="10040001";
    public final static String TO_STORE_TYPE_DIRECT="10040002";

    public final static String SESSION_WEIXINUSER = "sessionWeixinUser";


    //是否有效
    public final static int YES=10011001;

    public final static int NO=10011002;

    public final static int NO_MANAGER=10011003;
   //流程审核记录状态
    public final static int AUDIT_AGREE=60011001;//审核通过
    public final static int AUDIT_REFUSE=60011002;//审核未通过
    public final static int AUDITING=60011003;//审核中
    public final static int AUDIT_EMPOWER=60011004;//授权审核

    //流程状态
    public final static int ACTIVITI_OVER=80011001;

    public final static int ACTIVITI_NOT_OVER=80011002;

    //是否办理
    public final static int YES_TRANSACTION=90011001;
    public final static int NO_TRANSACTION=90011002;

    //是否授权
    public final static int YES_EMPOWER =100011001;
    public final static int NO_EMPOWER=100011002;


    //工资方案类型
    public final static String SALARY_TYPE_GENERAL = "20011001";//通用方案
    public final static String SALARY_TYPE_DRIVER = "20011002";//司机方案

    //司机方案绑定 缓存使用
    public final static String DRIVER_SALARY = "DRIVER_SALARY_";
    public final static String DRIVER_SALARY_CHANGELOG = "DRIVER_SALARY_CHANGELOG_";

    //是否阅读
    public final static int IS_READ =110110001;
    public final static int NO_READ=110110002;

    //公告是否发布
    public final static int IS_SEND=11000001;
    public final static int NO_SEND=11000002;

    //本站外调
    public final static Long DRIVER_LOCAL = 40031001L;//本站
    public final static Long DRIVER_WAIDIAO = 40031002L;//外调

    //运输产品
    public final static Long DELIVERY_PRODUCT_BETON = 40041001L;//混凝土
    public final static Long DELIVERY_PRODUCT_MORTAR = 40041002L;//砂浆
    public final static Long DELIVERY_PRODUCT_WATER = 40041003L;//水

    //卸货方式
    public final static Long XIEHUO_ZIXIE = 40051001L;//自卸
    public final static Long XIEHUO_BENGSONG = 40051002L;//泵送
    public final static Long XIEHUO_TADIAO = 40051003L;//塔吊
    public final static Long XIEHUO_ZHUANYUN = 40051004L;//转运

    //上班状态
    public final static Integer WORK_TYPE_VALID = 50011001;//正常
    public final static Integer WORK_TYPE_INVALID = 50011002;//作废
    public final static Integer WORK_TYPE_LATE = 50011003;//迟到
    public final static Integer WORK_TYPE_LEAVE = 50011004;//早退
    public final static Integer WORK_TYPE_LATE_LEAVE = 50011005;//迟到早退
    public final static Integer WORK_TYPE_ABSENT = 50011006;//旷工
//    public final static Long WORK_TYPE_VACATION = 50011007L;//带薪假


    //请假类型
    public final static Long STAFF_APPLY_TYPE_AFFAIRS = 70011001L;//事假
    public final static Long STAFF_APPLY_TYPE_SICK = 70011002L;//病假
    public final static Long STAFF_APPLY_TYPE_PAIDVACATION = 70011003L;//带薪假

    //班制类型
    public final static Long BANZHI_NORMAL = 40011001L;//通用
    public final static Long BANZHI_SINGLE = 40011002L;//单班
    public final static Long BANZHI_DOUBLE_IN = 40011003L;//双班驻站
    public final static Long BANZHI_DOUBLE_OUT = 40011004L;//双班不驻站



    //审批流类型
    public final static String APPLY_TYPE_SGKC = "sgck";//事故查勘
    public final static String APPLY_TYPE_CLJC = "cljc";//车辆检查
    public final static String APPLY_TYPE_SCJL = "scjl";//生产奖励
    public final static String APPLY_TYPE_SCBZ = "scbz";//生产补助
    public final static String APPLY_TYPE_SCKC = "sckc";//生产扣除
    public final static String APPLY_TYPE_CSGL = "csgl";//超速扣除
    public final static String APPLY_TYPE_SHFJK = "shfjk";//生活费扣除
    public final static String APPLY_TYPE_SGJK= "sgjk";//事故扣除

    public final static String APPLY_TYPE_BX = "bx";//报销
    public final static String APPLY_TYPE_PZGL = "pzgl";//牌证管理
    public final static String APPLY_TYPE_JBJK = "jbjk";//基本借款
    public final static String APPLY_TYPE_ZJJH= "zjjh";//资金计划
    public final static String APPLY_TYPE_FLJSQ = "fljsq";//福利金申请
    public final static String APPLY_TYPE_YZZZ = "yzzz";//印章证照
    public final static String APPLY_TYPE_XZWZCG = "xzwzcg";//行政物资采购
    public final static String APPLY_TYPE_DAGL= "dagl";//行政文案
    public final static String APPLY_TYPE_SCWZCG= "scwzcg";//生产物资采购
    public final static String APPLY_TYPE_TYSQ= "tysq";//停运申请
    public final static String APPLY_TYPE_YCTJ= "yctj";//异常提交
    public final static String APPLY_TYPE_SWSB= "swsb";//商务申报
    public final static String APPLY_TYPE_GDXC= "gdxc";//工地巡查
    public final static String APPLY_TYPE_YLSG= "ylsg";//油料申购
    public final static String APPLY_TYPE_YLRK= "ylrk";//油料入库
    public final static String APPLY_TYPE_WXWX= "wxwx";//外协维修


    //车辆自检检查类型
    public final static String WEEK_DAY = "110110001";//周报
    public final static String EVERY_DAY = "110110002";//日报

    //培训扣除金额
    public final static BigDecimal PEIXUNKOUCHUJINE= new BigDecimal("500");//培训扣除金额


    //是
    public final static int VALID=30011001;
    //否
    public final static int INVALID=30011002;

    //砼车
    public final static String CAR_TONG="40021001";
    //泵车
    public final static String CAR_BENG="40021002";

    //流程归档状态
    public final static int YES_File =10011001;//归档
    public final static int NO_FILE =10011002;//未归档

    public final static String OP_ADD="add";


}
